from . import models
from . import serializers
from rest_framework import viewsets, permissions


class newsViewSet(viewsets.ModelViewSet):
    """ViewSet for the news class"""

    queryset = models.news.objects.all()
    serializer_class = serializers.newsSerializer
    # permission_classes = [permissions.IsAuthenticated]


